package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Collect;
import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.query.CollecQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Copyright: Copyright (c) 2019 Super520
 * 描述：我的游记
 *
 * @package: cn.wolfcode.trip.base.service
 * @author: Patch
 * @date: 2019/5/19 15:24
 * 总结:
 */
public interface ITravelService {

    /**
     * 高级查询
     *
     * @param qo
     * @return
     */
    PageInfo<Travel> query(QueryObject qo);

    /**
     * 新增游记
     *
     * @param travel 游记对象
     */
    void saveOrUpdate(Travel travel);

    Travel get(Long id);

    Travel getContentById(Long id);

    void updateState(Travel travel);

    /**
     * 关键字查询
     * @param qo
     * @return
     */
    PageInfo<Travel> listContentByKeyword(QueryObject qo);

    PageInfo<Travel> selectCollectTravel(Collect collect, CollecQueryObject qo);


}

